/**
 * 
 */
package pits.dao;

import java.util.ArrayList;
import java.util.List;

import pits.dto.RoleDTO;

import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * @author ltd
 * 
 */
public class RoleDAOTest extends TestCase {

	/**
	 * Test method for {@link pits.dao.RoleDAO#getRoles()}.
	 */
	public void testGetRoles() {
		int size;
		RoleDAO dao = new RoleDAO();
		size = dao.getRoles().size();
		List<RoleDTO> list = new ArrayList<RoleDTO>();
		list = dao.getRoles();
		for (int i = 0; i < list.size(); i++) {
			new pits.util.Logger().writeln(i + " " + list.get(i).getRole());
		}
		Assert.assertEquals(3, size);
	}

}
